import qs from 'qs'
import http from '../libs/http'

const basicRoute = '/api/pet-category'

export const add = (data) => {
  return http.post(basicRoute + '/add', data)
}

export const getCategoryList = (params) => {
    return http.get(basicRoute + '/index', {
        params
    })
}

export const edit = (data) => {
  return http.post(basicRoute + '/edit', data)
}

export const del = (data) => {
  return http.post(basicRoute + '/del', data)
}
